<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="payment.api.util.GUIDGenerator"%>
<%@page import="payment.api.system.PaymentEnvironment"%>
<%
    String contextPath = request.getContextPath();
    String debugMode = PaymentEnvironment.debugMode;
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>模拟商户</title>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/Common.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/Form.css">	
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/Table.css">
    <script type="text/javascript" src="<%=contextPath%>/js/bankIDList.js"></script>
  </head>
  <body onload="show(quickPayBankList);changeRule();showSelect()">
    <script type="text/JavaScript">

function doSubmit() {    
    document.form1.submit();
}

</script>
    <p class="title">
      模拟商户
    </p>
    <%
        String action = contextPath + "/Tx2071";
    %>
    <form action="<%=action%>" name="form1" method="POST">
      <table width="100%" cellpadding="2" cellspacing="1" border="0" align="center" bgcolor="#DDDDDD">
        <tr>
          <td class="head" height="24" colspan="2">
            线下单笔签约（2071）
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>机构号码</td>
          <td width="*" class="content">
            <input type="text" name="InstitutionID" size="40" value="000020" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>申请交易流水号</td>
          <td width="*" class="content">
            <input type="text" name="TxSN" size="40" value="<%=GUIDGenerator.genGUID()%>" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>银行ID</td>
          <td width="*" class="content">       
            <select id="bankList"  name="BankID" onchange="changeRule()" style="width: 274">
            </select>
            <input type="text" name="BankID" id="bank" onfocus="showSelect()" size="40" style="display:none" value="700"  />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>账户类型</td>
          <td width="*" class="content">
            <select id="AccountType" name="AccountType" style="width: 274">
              <option value="11">11-个人账户</option>
              <option value="12">12-企业账户</option>
            </select>
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>卡类型</td>
          <td width="*" class="content">
            <select id="CardType" name="CardType" style="width: 274">
              <option value="10">10-借记卡</option>
              <option value="20">20-贷记卡</option>
              <option value="30">30-存折</option>
            </select>
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>签约方账户名称</td>
          <td width="*" class="content">
            <input type="text" name="AccountName" size="40" value="尹邦凤" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>签约方账户号码</td>
          <td width="*" class="content">
            <input type="text" name="AccountNumber" size="40" value="6222020200002432" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>开户证件类型</td>
          <td width="*" class="content">
            <select id="IdentificationType" name="IdentificationType" style="width: 274">
            <option value="">--选择--</option>
            <option value="0">0-身份证</option>
            <option value="1">1-户口簿</option>
            <option value="2">2-护照</option>
            <option value="3">3-军官证</option>
            <option value="4">4-士兵证</option>
            <option value="5">5-港澳居民来往内地通行证</option>
            <option value="6">6-台湾同胞来往内地通行证</option>
            <option value="7">7-临时身份证</option>
            <option value="8">8-外国人居留证</option>
            <option value="9">9-警官证</option>
            <option value="10">10-港澳居民居住证</option>
            <option value="11">11-台湾居民居住证</option>
            <option value="A">A-组织机构代码证号</option>
            <option value="B">B-营业执照号码</option>
            <option value="C">C-登记证书</option>
            <option value="D">D-国税登记证号码</option>
            <option value="E">E-地税登记证号码</option>
            <option value="F">F-开户许可证</option>
            <option value="G">G-事业单位编号</option>
            <option value="I">I-金融许可证编号</option>
            <option value="X">X-其他证件</option>
            </select>
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>证件号码</td>
          <td width="*" class="content">
            <input type="text" name="IdentificationNumber" size="40" value="" /><font id="rulet" style="display:none" color="#FF0000" size="2"><b>测试环境交易状态返回规则：备注字段填‘10’返回成功状态；填‘20’返回失败状态；填‘30’返回处理中状态</b></font><%if(debugMode=="20"){ %>test="123456"<%} %>
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>手机号</td>
          <td width="*" class="content">
            <input type="text" name="PhoneNumber" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>签约方法人姓名</td>
          <td width="*" class="content">
            <input type="text" name="LegalPersonName" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>签约方法人证件类型</td>
          <td width="*" class="content">
            <select id="LegalPersonIdentType" name="LegalPersonIdentType" style="width: 274">
            <option value="">--选择--</option>
            <option value="0">0-身份证</option>
            <option value="1">1-户口簿</option>
            <option value="2">2-护照</option>
            <option value="3">3-军官证</option>
            <option value="4">4-士兵证</option>
            <option value="5">5-港澳居民来往内地通行证</option>
            <option value="6">6-台湾同胞来往内地通行证</option>
            <option value="7">7-临时身份证</option>
            <option value="8">8-外国人居留证</option>
            <option value="9">9-警官证</option>
            <option value="10">10-港澳居民居住证</option>
            <option value="11">11-台湾居民居住证</option>
            <option value="X">X-其他证件</option>
            </select>
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>签约方账户号码</td>
          <td width="*" class="content">
            <input type="text" name="LegalPersonIdentNumber" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>业务类型</td>
          <td width="*" class="content">
            <input type="text" name="PayType" size="40" value="110001" />
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24">收款协议，禁止中文</td>
          <td width="*" class="content">
            <input type="text" name="AuthNo" placeholder="付款客户与收款商户事先签订的收款协议，禁止中文" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>委托交易限额</td>
          <td width="*" class="content">
            <input type="text" name="AmountLimit" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>委托起始时间</td>
          <td width="*" class="content">
            <input type="text" name="TimeStart" placeholder="委托协议的生效时间，格式yyyyMMddHHmmss" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>委托结束时间</td>
          <td width="*" class="content">
            <input type="text" name="TimeEnd" placeholder="委托协议的失效时间，格式yyyyMMddHHmmss" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
          <td width="120" class="label" height="24"><font color="red">*</font>委托扣款时间单位</td>
          <td width="*" class="content">
            <select id="TimeUnit" name="TimeUnit" style="width: 274">
              <option value="00">00-年</option>
              <option value="04">04-月</option>
              <option value="07">07-日</option>
            </select>
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24"><font color="red">*</font>委托扣款时间步长</td>
          <td width="*" class="content">
            <input type="text" name="TimeStep" placeholder="按季度扣款时，步长为“3”；按周扣款时，步长为“7”" size="40" value="" />
          </td>
        </tr>
        <tr class="mouseout">
         <td width="120" class="label" height="24">备注</td>
          <td width="*" class="content">
            <input type="text" name="Remark" size="40" value="" />
          </td>
        </tr>
      </table>

      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td height="10" colspan="2" />
        </tr>
        <tr>
          <td width="200" height="28" ></td>
          <td width="*">
            <input type="button" class="ButtonMouseOut" onmouseover="this.className='ButtonMouseOver'"
              onmouseout="this.className='ButtonMouseOut'" style="width: 60px" value="提交" onclick="doSubmit()">
          </td>
        </tr>
      </table>

    </form>
  </body>
</html>


